package com.genius.reservation.reservation.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.List;

import com.genius.reservation.car.entity.CarInformation;
import com.genius.reservation.car.entity.ReservationStartCarInformation;
import com.genius.reservation.driver.entity.DriverInformation;
import com.genius.reservation.platform.entity.PlatformInformation;
import com.genius.reservation.receiver.entity.ReceiverInformation;
import com.genius.reservation.supplier.entity.SupplierInformation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 预约信息
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
@TableName("reservation_information")
@ApiModel(value = "ReservationInformation对象", description = "预约信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReservationInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("预约编号")
    private String reservationNumber;

    @ApiModelProperty("供应商代码")
    private String supplierNumber;

    @ApiModelProperty("供应商名称")
    private String supplierName;


    @ApiModelProperty("预计到达时间")
    private String estimatedArrivalTime;

    @ApiModelProperty("确认到达时间")
    private String confirmArrivalTime;

    @ApiModelProperty("超时标记")
    private Integer timeoutStatus;

    @ApiModelProperty("收货时间")
    private String confirmOverTime;

    @ApiModelProperty("托盘数")
    private Integer trayCount;

    @ApiModelProperty("商品件数")
    private Integer gdsNumber;

    @ApiModelProperty("品项数")
    private Integer gdsCount;

    @TableField(value = "QR_code")
    private String QRCode;

    @TableField(value = "reservation_name")
    private String reservationName;

    private Integer isReassign;

    @ApiModelProperty("当前状态 0 已到达 1 开始装卸 2 装卸完成 3 已经迟到 4 准备收尾 5 已离场 6 未知状态 7 离线 9 异常")
    private Integer nowStatus;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @TableField(exist = false)
    private SupplierInformation supplier;

    @TableField(exist = false)
    private List<ReservationStartCarInformation> drivers;

    @TableField(exist = false)
    private List<ReservationOrderInformation> orders;

//    @ApiModelProperty("超时状态 0 准时 1 超时 2 提早")
//    private Integer timeoutStatus;

//    @ApiModelProperty("收货员编号")
//    private String estimatedReceiverNumber;
//
//    @ApiModelProperty("确认收货员")
//    private String confirmReceiverNumber;
//
//    @ApiModelProperty("实际收货员编号")
//    private String actualReceiverNumber;

//    @ApiModelProperty("重新分配")
//    private Integer isReassign;

//    @ApiModelProperty("分配月台号")
//    @TableField(value = "estimated_platform_number")
//    private String estimatedPlatformNumber;
//
//    @ApiModelProperty("实际月台号")
//    @TableField(value = "actual_platform_number")
//    private String actualPlatformNumber;

//    @TableField(value = "confirm_over_time")
//    private String confirmOverTime;

//    @TableField(exist = false)
//    private PlatformInformation confirmPlatform;
//
//    @TableField(exist = false)
//    private PlatformInformation actualPlatform;

//    @TableField(exist = false)
//    private List<CarInformation> cars;

}
